package br.com.controleFinanceiro;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

public class RelatorioMensal extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.relatorio);
    }
    
    @Override
    public boolean onCreateOptionsMenu(Menu menu)
    {
    	MenuInflater menuInflater = getMenuInflater();
    	menuInflater.inflate(R.menu.lista_menus_relatorio, menu);
    	return true;
    }
    
    
    @Override
    public boolean onOptionsItemSelected(MenuItem itemMenu){
    	
    	switch (itemMenu.getItemId()) {
		case R.id.menu_cadastrar:
			startActivity(new Intent(RelatorioMensal.this,Cadastro.class));
			finish();
			break;
		case R.id.menu_salario:
			startActivity(new Intent(RelatorioMensal.this, Recebimento.class));
			finish();
			break;
		case R.id.menu_pag_contas:
			startActivity(new Intent(RelatorioMensal.this, Pagamentos.class));
			finish();
			break;
		case R.id.menu_principal:
			startActivity(new Intent(RelatorioMensal.this, Principal.class));
			finish();
			break;
		default:
			break;
		}
    	return true;
    }
    
    
}